import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired, type UploadRecord } from "../../interface";

/**
 * /uploadRecord/update
 */
export function putUploadRecordUpdate(params: PutUploadRecordUpdateParams, config?: AxiosRequestConfig) {
    const paramsInput = {
        ...params.tUploadRecord,
    };
    return request.put<DeepRequired<any>>(`/uploadRecord/update`, null, {
        params: paramsInput,
        ...config,
    });
}

export interface PutUploadRecordUpdateParams {
    tUploadRecord: UploadRecord;
}
